FluentForm\App\Services\Emogrifier\Emogrifier D

Total Complexity 185
Dependencies 7
Dependents 2
Total lines 1,799
Lines of code 758
Logical lines of code 407
Comment lines 722
Methods 67
Properties 15

Methods 67

Method Rating Maintainability Complexity Lines of code
mapComplexCssProperty()
A
45 16 38
process()
A
42 11 51
parseCssRules()
A
48 8 33
parseNth()
A
49 8 29
generateStyleStringFromDeclarationsArrays()
S
52 7 25
handleXpathQueryWarnings()
S
53 6 23
mapSimpleCssProperty()
S
59 6 13
getNodesToExclude()
S
57 5 17
copyCssWithMediaToStyleNode()
S
58 5 15
removeInvisibleNodes()
S
61 5 13
addContentTypeMetaTag()
S
55 4 20
getCssSelectorPrecedence()
S
55 4 19
parseCssDeclarationsBlock()
S
56 4 18
translateCssToXpath()
S
50 3 30
existsMatchForCssSelector()
S
62 4 11
translateNthOfType()
S
54 3 24
translateNthChild()
S
54 3 24
removeImportantAnnotationFromNodeInlineStyle()
S
55 3 20
parseCssShorthandValue()
S
64 4 9
sortBySelectorPrecedence()
S
66 4 7
extractMediaQueriesFromCss()
S
60 3 13
getCssFromAllStyleNodes()
S
62 3 12
splitCssAndMediaQuery()
S
54 2 21
normalizeStyleAttributesOfAllNodes()
S
67 3 8
normalizeStyleAttributes()
S
59 2 15
fillStyleAttributesWithMergedStyles()
S
61 2 13
clearCache()
S
61 2 13
removeUnprocessableTags()
S
63 2 11
translateCssToXpathPassWithMatchClassAttributesCallback()
S
54 1 24
mapCssToHtmlAttribute()
S
72 2 5
ensureExistenceOfBodyElement()
S
68 2 7
removeUnprocessableHtmlTag()
S
70 2 6
removeExcludedSelector()
S
73 2 5
emogrify()
S
71 2 6
matchIdAttributes()
S
76 2 3
matchClassAttributes()
S
76 2 3
getBodyElement()
S
64 2 10
removeAllowedMediaType()
S
73 2 5
mapCssToHtmlAttributes()
S
69 2 6
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
mapAllInlineStylesToHtmlAttributes()
S
70 2 6
createAndProcessXmlDocument()
S
65 2 9
ensureDocumentType()
S
68 2 7
createRawXmlDocument()
S
62 1 12
matchClassAttributesInline()
S
68 1 7
translateCssToXpathPassInline()
S
72 1 6
translateCssToXpathPass()
S
72 1 6
__construct()
S
77 1 4
getUnifiedHtml()
S
73 1 5
enableCssToHtmlMapping()
S
81 1 3
setHtml()
S
81 1 3
setCss()
S
81 1 3
emogrifyBodyContent()
S
71 1 5
getAllNodesWithStyleAttribute()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
clearAllCaches()
S
70 1 7
addStyleElementToDocument()
S
66 1 8
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
__destruct()
S
82 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
attributeValueIsImportant()
S
77 1 3
setDebug()
S
81 1 3